<template>
  <div id="app">
      <HelloWorld :count="count"></HelloWorld>
      <button @click="add()">+</button>
      <button @click="sub()">-</button>
      <OneVue></OneVue>
      <MyVuex></MyVuex>
  </div>
</template>
<script>
import OneVue from "./components/OneVue.vue"
import MyVuex from "./components/MyVuex.vue"
import HelloWorld from "./components/HelloWorld.vue"
export default {
  name: 'App',
  components: {
    HelloWorld,OneVue,MyVuex
  },
  data () {
    return {
      count:0
    }
  },
  methods:{
    add(){
      this.count++
    },
    sub(){
      this.count--
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
